﻿using System.IO;
using System.Text;

namespace WebConversion.Common.Configuration
{
    public static class StaticDataProvider
    {
        #region Menu
        public static string GetMainMenu()
        {
            var menuFile = AppConfigReader.ConfigurationRootPath + "Menu\\" + "MenuOfHomePage.xml";
            var menuStr = File.ReadAllText(menuFile, Encoding.UTF8);
            return menuStr;
        }

        public static object GetSubMenu()
        {
            var menuFile = AppConfigReader.ConfigurationRootPath + "Menu\\" + "SidebarOfHomePage.xml";
            var menuStr = File.ReadAllText(menuFile, Encoding.UTF8);
            return menuStr;
        }

        #endregion
    }
}
